﻿<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified">
  <xs:element name="Hero">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Name" type="xs:string" maxOccurs="1" minOccurs="1" />
        <xs:element name="Side" type="xs:string" maxOccurs="1" minOccurs="1" />
        <xs:element name="DotaVersion" type="xs:string" maxOccurs="1" minOccurs="0" />
        <xs:element name="LastUpdateDate" type="xs:string" maxOccurs="1" minOccurs="0" />
        <xs:element name="Author" type="xs:string" maxOccurs="1" minOccurs="1" />
        <xs:element name="Comments" type="xs:string" maxOccurs="1" minOccurs="0" />
        <xs:element name="ItemBuilds" minOccurs="0" maxOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ItemBuild" maxOccurs="unbounded" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Name" type="xs:string" maxOccurs="1" minOccurs="1"/>
                    <xs:element name="Items" maxOccurs="1" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element maxOccurs="unbounded" minOccurs="0" name="ItemHero">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="Name" type="xs:string" maxOccurs="1" minOccurs="1"/>
                                <xs:element minOccurs="0" maxOccurs="1" name="Type" type="xs:string" />
                                <xs:element minOccurs="0" maxOccurs="1" name="Comment" type="xs:string" />
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="SkillBuilds" minOccurs="0" maxOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="SkillBuild" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Name" type="xs:string" maxOccurs="1" minOccurs="1" />
                    <xs:element name="Skills" maxOccurs="1" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element maxOccurs="unbounded" minOccurs="0" name="Skill">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="Name" type="xs:string" maxOccurs="1" minOccurs="1"/>
                                <xs:element name="Level" type="xs:unsignedByte" maxOccurs="1" minOccurs="1" />
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xsd:schema>